import Vue from 'vue'
import ElementUI from 'element-ui';
import axios from 'axios';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
Vue.filter("handleString", function (val) {
    if (val.length > 3) {
        val = val.slice(0, 3) + "..."
    }
    return val;
})
Vue.prototype.$http = axios;
import Loading from '../components/Loading.vue'
Vue.component("Loading", Loading)